// 用于定义 api 的 路径和方法
const BaseApi = {
  USER: '/users',
  CHAT: '/chat',
  QQVERIFY: '/users/send',
  MAILBOX: '/users/sign-in',
  ELVERIFY: '/users/send',
  ELLOGIN: '/users/sign-in',
  PERSONA: '/users',
}

/**用户api */
export const UserApi = {
  GET_USERINFO: ['GET', `${BaseApi.USER}`],
}

/**聊天api */
export const ChatApi = {
  CHAT_AI: ['GET', `${BaseApi.CHAT}/ai`],
}

// /** 发送邮箱验证 */
export const VerifyApi = {
  VERIFY_QQ: ['POST', `${BaseApi.QQVERIFY}/email-code`],
}

/** 邮箱注册 */
export const MailboxApi = {
  MAILBOX_QQ: ['POST', `${BaseApi.MAILBOX}/email`],
}

// 手机验证码
export const ElverifyApi = {
  VERIFY_EL: ['POST', `${BaseApi.ELVERIFY}/sms`],
}

// 手机登录
export const ELLoginApi = {
  LOGIN_EL: ['POST', `${BaseApi.ELLOGIN}/sms`],
}

// 个人资料
export const PersonalDataApi = {
  PERSONA_PD: ['PUT', `${BaseApi.PERSONA}`],
}
